<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"   contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
       <img src="images/bg.jpg" style="width:100%;height:100%;position: absolute; z-index:-1"/>
       <center>
       <br/><br/><br/> <br/><br/>
          <h1 style="font-size:70px;color:blue">陕能源学生管理系统</h1>
      <br/><br/><br/>
         <form action="userServlet" method="post">
         
          <table border="0"  style="background-color: pink">
              <tr style="background-color: #7FFF00">
                 <th colspan="2">系统登录</th>
              </tr>
              <tr>
                 <td>用户名：</td><td><input type="text" name="userName" /></td>
              </tr>
               <tr>
                 <td>密码：</td><td><input type="password" name="userPwd"> </td>
              </tr>
               <tr>
                 <td colspan="2" align="center"><input type="submit" value="登录">&nbsp;&nbsp;<input type="reset" value="重置"> </td>
              </tr>
          </table>
          <span style="color:red"><%=request.getAttribute("errorMsg")==null?"":request.getAttribute("errorMsg") %></span>
          </form>
          </center>
  </body>
</html>
